package o;

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;

public abstract class epb {
    private static final String ˋ = epb.class.getSimpleName();
    private static String ˏ = null;

    private epb() {
    }

    public static String ˎ() {
        if (ˏ != null) {
            return ˏ;
        }
        try {
            String str;
            String ˏ = ccz.ˏ();
            PackageInfo packageInfo = ContentManager.getInstant().getContext().getPackageManager().getPackageInfo(ContentManager.getInstant().getContext().getPackageName(), 0);
            if (packageInfo != null) {
                str = ˏ + packageInfo.versionName;
            } else {
                str = ˏ;
            }
            ˏ = dod.ˋ("ro.product.brand");
            String str2 = "other";
            if (dof.ˋ(ˏ)) {
                ˏ = str2;
            }
            ˊ(str + "_" + ˏ);
            return ˏ;
        } catch (NameNotFoundException e) {
            Logger.e(ˋ, "getUserAgent() " + e.toString());
            return null;
        }
    }

    private static void ˊ(String str) {
        ˏ = str;
    }
}
